

package com.common;

public class Const {

	/************************反馈信息*************************/
	
	public static final int _INT_FALSE                  = 0;
	public static final int _INT_TRUE                   = 1;
	
	// 错误代码001:未登录
	public static final String _ERROR_CODE_UNIDENTIFIED = "001";
	
	// 错误代码:没角色
	public static final String _ERROR_CODE_UNROLE       = "UNROLE";

	public static final String _MOBILPHONE_EXISTS 		= "手机号已经存在,不能重复注册!";
	public static final String _MOBILPHONE_REQUIRED     = "手机号码不存在,不能重置密码!";
	public static final String _MOBILPHONE_SUCCESS      = "手机注册成功!";
	public static final String _OK_SEND_AUTHCODE        = "发送验证码成功!";

	public static final String _OK_LOGIN                = "登录成功.";
	
	public static final String _PROFILE_USERNAME_EXISTS = "用户名:%s 已经存在,不能重复注册!";
	
    public static final String _OK_UP_PASS              = "更新密码成功!";
	
	public static final String _FAIL_AUTHCODE	        = "验证码不能为空!";
	
	public static final String _FAIL_FAIL	            = "图片验证码错误!";
	
	public static final String _FAIL_AUTHCODE_NO_EXISTS = "验证码不存在!";
	
	public static final String _SUCCESS_AUTHCODE_COMPARE  = "验证码比对成功!";
	
	public static final String _FAIL_NO_UESR            = "操作失败!原因：用户不存在.";
	
	public static final String _FAIL_LOGIN_AUTH         = "登录失败!原因:密码错误.";
	
	public static final String _FAIL_UNIDENTIFIED      	= "操作失败!原因：用户未登录.";
	
	public static final String _FAIL_UNAUTHORIZED		= "操作失败!原因：用户无权限.";

	public static final String _UTF8					= "UTF-8";

	public static final String _COMMA                   = ",";

	public static final String _CSV                     = ".csv";

	public static final String _DOC                     = ".doc";

	public static final String _RMB                     = "RMB";

	public static final String _DASH                    = "-";
	//摘要   计划改名为 digest
	public static final String PARAM_DIGEST = "digest";

	//token  对应用户名  根据token 检索用户名
	public static final String PARAM_USERNAME = "token";

	// actionid 每个请求不一样， timestamp  计划改名为 sequence
	public static final String PARAM_SEQUENCE = "sequence";

	public static final String PARAM_FILE = "file";

	public static final int SALT_SIZE                   = 8;

	public static final int HASH_INTERATIONS            = 1024;

	// token有效期(天)
	public static final Integer _DEF_VALID_DAYS         = 7;

	public static final String _FAIL_SAVE				= "保存失败.";
	public static final String _OK_SAVE 				= "保存成功.";
	

}